<form method="post" action="{ADMINSCRIPT}?action=plugins&operation=config&do={$pluginid}&identifier=erling_qd&pmod=config">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table class="tb tb2">
<tr><th>配置名称</th><th>配置值</th><th>配置说明</th></tr>

<!--{loop $configs $config}-->
<!--{if !in_array($config['key'], ['position_float_value', 'position_float_color', 'position_float_bgcolor'])}-->
<tr>
    <td>{$config['name']}</td>
    <td>
    <!--{if $config['key'] == 'credit'}-->
        最小值: <input type="number" name="config[{$config['key']}][min]" value="{$credit_values[0]}" min="1" />
        最大值: <input type="number" name="config[{$config['key']}][max]" value="{$credit_values[1]}" min="1" />
    <!--{elseif $config['key'] == 'extcredits'}-->
        <select name="config[{$config['key']}]">
        <!--{loop $extcredits_data $i $credit}-->
            <!--{if $credit['available'] && !empty($credit['title'])}-->
                <option value="{$i}" <!--{if $config['value'] == $i}-->selected<!--{/if}-->>{$credit['title']} (extcredits{$i})</option>
            <!--{/if}-->
        <!--{/loop}-->
        </select>
    <!--{elseif $config['key'] == 'position'}-->
        <select name="config[{$config['key']}]">
        <!--{loop $positions $value $label}-->
            <option value="{$value}" <!--{if $config['value'] == $value}-->selected<!--{/if}-->>{$label}</option>
        <!--{/loop}-->
        </select>
    <!--{elseif $config['key'] == 'mobile_position'}-->
        <select name="config[{$config['key']}]">
        <!--{loop $mobile_positions $value $label}-->
            <option value="{$value}" <!--{if $config['value'] == $value}-->selected<!--{/if}-->>{$label}</option>
        <!--{/loop}-->
        </select>
    <!--{else}-->
        <input type="text" name="config[{$config['key']}]" value="{$config['value']}" />
    <!--{/if}-->
    </td>
    <td>{$config['desc']}</td>
</tr>
<!--{/if}-->
<!--{/loop}-->

</table>
<input type="submit" class="btn" name="configsubmit" value="提交保存" />
</form>